<?php
/**
 * Minhlog Domain_Table 文章标签关系类
 *
 * LICENSE
 *
 * This source file is subject to the new BSD license that is bundled
 * with this package in the file LICENSE.txt.
 *
 * @category   Domain
 * @package    Domain_Table
 * @copyright  Copyright (c) 2009-2010 Minh.Shu@gmail.com
 * @license    New BSD License
 * @author     Minh.Shu
 * @version    $Id: Article.php 2 2010-01-17 13:49:08Z Minh.Shu $
 *
 */

class Domain_Table_Tag_Article extends Domain_Table_Abstract
{
    protected $_name = 'mlog_tag_article';
    protected $_primary = 'relation_id';

    protected $_referenceMap = array(
            'Tag' => array(
                            'columns'       => 'tag_id',
                            'refTableClass' => 'Domain_Table_Tag',
                            'refColumns'    => 'tag_id',
                            'onDelete'      => self::CASCADE
            ),
            'Article' => array(
                            'columns'       => 'article_id',
                            'refTableClass' => 'Domain_Table_Article',
                            'refColumns'    => 'article_id',
                            'onDelete'      => self::CASCADE
            ),
    );
}